Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace node-fetch and https-proxy-agent with undici #743

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benmccann
Copy link
Collaborator

@benmccann benmccann commented Jun 29, 2024

Fixes: #876

Added in Node 16.15.0. This library already requires Node 18

undici is the official fetch implementation, which is bundled with Node. While fetch is available as a Node global, unfortunately ProxyAgent is not yet available in Node: nodejs/node#43187. Nonetheless I've switched this PR to use undici in favor of https-proxy-agent because it will eventually be the standard and we're replacing two dependencies with one

Nock doesn't seem to be working. Might need to switch to: https://x.com/mattpocockuk/status/1841074839446003927?t=nPivnaYBwxq9AQ51N2zkUg&s=19

Also might need to take a look at the concerns in #747 (comment)

@cclauss cclauss requested a review from axrj June 29, 2024 16:07
@benmccann benmccann marked this pull request as draft June 30, 2024 04:22
@benmccann benmccann changed the title chore: remove node-fetch chore: replace node-fetch and https-proxy-agent with undici Jun 30, 2024
@benmccann benmccann force-pushed the fetch branch 4 times, most recently from bb41cde to fe419c3 Compare July 13, 2024 18:42
@benmccann benmccann force-pushed the fetch branch 2 times, most recently from 4b2cef6 to 974b934 Compare July 19, 2024 20:28
@benmccann benmccann force-pushed the fetch branch 6 times, most recently from 7e1c33f to 292931f Compare September 9, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEP0155 and DEP0156 warnings during build
1 participant